# Maintainer:
pkgname=py3-google-trans-new
pkgver=1.1.9
pkgrel=2
pkgdesc="Free and unlimited python API for google translate"
url="https://github.com/lushan88a/google_trans_new"
arch="noarch"
license="MIT"
depends="
	py3-requests
	py3-urllib3
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/g/google_trans_new/google_trans_new-$pkgver.tar.gz"
builddir="$srcdir/google_trans_new-$pkgver"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
c9d00b62b5ae3169d11b5f07aed0f0a71950e67fb875eaa32ecb5a1bd26388ac954abb7c124e01b278850bef887e507e468d39d2df891a6018abf436d2850278  google_trans_new-1.1.9.tar.gz
"
